import request from '@/utils/request'

// 查询账户消息列表
export function listAccountmessage(query) {
  return request({
    url: '/business/accountmessage/list',
    method: 'get',
    params: query
  })
}

// 查询账户消息详细
export function getAccountmessage(id) {
  return request({
    url: '/business/accountmessage/' + id,
    method: 'get'
  })
}

// 新增账户消息
export function addAccountmessage(data) {
  return request({
    url: '/business/accountmessage',
    method: 'post',
    data: data
  })
}

// 修改账户消息
export function updateAccountmessage(data) {
  return request({
    url: '/business/accountmessage',
    method: 'put',
    data: data
  })
}

// 删除账户消息
export function delAccountmessage(id) {
  return request({
    url: '/business/accountmessage/' + id,
    method: 'delete'
  })
}
